package com.sleepingcat.ft_jetpack.coroutine

import com.cat.android.lib_base.base.RouterFragment
import com.cat.android.lib_ui.ext.onClick
import com.cat.android.plugin_navigation_runtime.NavDestination
import com.sleepingcat.ft_jetpack.databinding.FragmentCoroutineMainBinding
import com.sleepingcat.lib_common.const.Routes

@NavDestination(type = NavDestination.NavType.Fragment, route = Routes.Jetpack.COROUTINE_MAIN)
class CoroutineMainFragment : RouterFragment<FragmentCoroutineMainBinding>() {
    override fun initView() {
        super.initView()
        binding.apply {
            btnBase.onClick {
                navigate(Routes.Jetpack.COROUTINE_BASE.hashCode())
            }
            btnAdvance.onClick {
                navigate(Routes.Jetpack.COROUTINE_ADVANCE.hashCode())
            }
        }
    }
}